
    <ion-view view-title="会员卡搜索">
        <ion-content padding="true">
            <div class="col-lg-12">
                <!--代码写在这里-->
                <div class="row">
                    <div class="col-lg-12">
                        <div class="main-box">
                            <div class="main-box no-header clearfix">
                                <div class="main-box-body clearfix" >
                                    <form class="form-horizontal" role="form">
                                        <div class="form-group" style="height: 30px">
                                            <label class="col-lg-2 control-label"></label>
                                            <div class="col-lg-5" style="width: 75%;display: block;float: left; height: 100%">
                                                <input type="tel" class="form-control" ng-model="search.card_id" placeholder="请输入会员卡号">
                                            </div>
                                            <a class="btn btn-success" ng-click="searchCard(search)" style="width: 25%;display: block;float: left;height: 100%;top:0">
                                                <i class="fa fa-search "></i> 搜索
                                            </a>
                                        </div>
                                    </form>
                                    <ul class="list" ng-repeat="item in list">
                                        <!--<li class="item">-->
                                            <!--<a class="btn btn-block btn-danger navbar-fixed-bottom" href="#/card/recharge/{{item._id}}" ng-if="item.member.name != undefined && item.status == 1">充值</a>-->

                                        <!--</li>-->
                                        <li class="item">
                                            会员卡号:{{item.card_id}}
                                        </li>
                                        <li class="item">
                                            持卡人:{{item.member.name}}
                                        </li>
                                        <li class="item">
                                            资金:{{item.fund}}
                                        </li>
                                        <li class="item">
                                            创建时间:{{item.create_time}}
                                        </li>
                                        <li class="item" ng-if="item.status == -1" >
                                            会员卡状态:已注销
                                        </li><li class="item" ng-if="item.status == 0" >
                                        会员卡状态:未启用
                                    </li><li class="item" ng-if="item.status == 1" >
                                        会员卡状态:已启用
                                    </li><li class="item" ng-if="item.status == 2" >
                                        会员卡状态:已停用
                                    </li><li class="item" ng-if="item.status == 'origin'" >
                                        会员卡状态:未启用
                                    </li><li class="item" ng-if="item.status == 'dispatched'" >
                                        会员卡状态:已启用
                                    </li><li class="item" ng-if="item.status ==  'deserted'" >
                                        会员卡状态:已弃用
                                    </li>
                                    <li class="item">
                                            会员卡类型:{{item.type}}
                                    </li>
                                    <li class="item" style="position: relative; padding: 12px 16px;">
                                        <a class="btn btn-block btn-danger navbar-fixed-bottom" style="position: static; " href="#/card/consume/{{item._id}}" ng-if="item.member.name != undefined && item.status == 1">消费</a>
                                    </li>

                                    </ul>
                                    <div ng-show="notFundAnyMember == 1 ">
                                        没有找到符合条件的会员卡信息！
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
        </ion-content>
    </ion-view>
    